import random


def split_train_val_set(labels, train_percent=0.9):
    random.shuffle(labels)
    num_train = int(len(labels) * train_percent)
    return labels[:num_train], labels[num_train:]
